package com.medical.standard.entity;

import java.util.Date;

public class Standard {
    private Integer id;
    private String standardCode;
    private String standardName;
    private String englishName;
    private String referenceType;
    private Date publishDate;
    private Date implementationDate;

    public Standard() {}

    public Standard(String standardCode, String standardName, String englishName,
                    String referenceType, Date publishDate, Date implementationDate) {
        this.standardCode = standardCode;
        this.standardName = standardName;
        this.englishName = englishName;
        this.referenceType = referenceType;
        this.publishDate = publishDate;
        this.implementationDate = implementationDate;
    }

    // getter和setter方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public String getStandardCode() { return standardCode; }
    public void setStandardCode(String standardCode) { this.standardCode = standardCode; }

    public String getStandardName() { return standardName; }
    public void setStandardName(String standardName) { this.standardName = standardName; }

    public String getEnglishName() { return englishName; }
    public void setEnglishName(String englishName) { this.englishName = englishName; }

    public String getReferenceType() { return referenceType; }
    public void setReferenceType(String referenceType) { this.referenceType = referenceType; }

    public Date getPublishDate() { return publishDate; }
    public void setPublishDate(Date publishDate) { this.publishDate = publishDate; }

    public Date getImplementationDate() { return implementationDate; }
    public void setImplementationDate(Date implementationDate) { this.implementationDate = implementationDate; }

    @Override
    public String toString() {
        return String.format("标准[编号=%s, 名称=%s, 英文名=%s, 发布日期=%s]",
                standardCode, standardName, englishName, publishDate);
    }
}